This was because the upgade to mysql didn't complete. apt --fix-broken install completes the upgrade. I guess ubuntu upgrade was somewhat midway? I think https://docs.cloudron.io/guides/upgrade-ubuntu-20/#post-upgrade (though the server was already in Ubuntu 22). After that the update worked.